import { Injectable } from "@tsdy/exist";
import { Index, IndexModel } from "../model/index.model";

@Injectable
export class IndexService {
    async addIndex() {
        const index: Index = {
            text: 'helloworld',
        }
        const model = new IndexModel(index)
        await model.save()
    }

}